import service from '@/utils/request'

export const getList = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/queryProcessList', dataForm)
}

export const getDetail = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/detail', dataForm)
}

export const updateApi = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/update', dataForm)
}

export const submitAudit = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/doAudit', dataForm)
}

export const returnBack = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/doReturn', dataForm)
}

export const assignAccountApi = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/assignAccount', dataForm)
}

export const updateTimeSetting = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/updateTimeSetting', dataForm)
}

export const getPiWenList = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/queryProjectApprovalDocumentList', dataForm)
}

export const getPiWenDetail = (dataForm: any) => {
	return service.post('/api/scientificResearchProcess/queryProjectApprovalDocumentDetail', dataForm)
}

export const getTemplate = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/getFileNameByTemplateType', dataForm)
}

export const downTemplate = (dataForm: any) => {
	return service.post('/api/scientificResearchInfo/downloadByFileName', dataForm)
}
